﻿using System.ServiceModel.DomainServices.Client;
using System.Linq;

namespace ObservableCollections.Extensions
{
    public static class EntityCollectionExtender
    {
        public static bool Contains<T>(this EntityCollection<T> entityCollection , Entity entity) where T:Entity
        {            
            return entityCollection.Any(i => i == entity);
        }
    }
}
